<html xmlns="http://www.w3.org/1999/xhtml" >
 <head>
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
 <title>3GQQ加载时间测试</title>
 <script type="text/javascript">
 var start = new Date();
 
 function getResult(){
	var end = new Date();
	var start_time = start.getTime();
	var start_str = "Start loading time: ";
	start_str = start_str + start.getFullYear()+"/";
	start_str = start_str + (start.getMonth()+1)+"/";
	start_str = start_str + start.getDate()+" ";
	start_str = start_str + start.getHours()+":";
	start_str = start_str + start.getMinutes()+":";
	start_str = start_str + start.getSeconds()+".";
	start_str = start_str + start.getMilliseconds()+".";
	var end_time = end.getTime();
	var end_str = "Finish loading time: ";
	end_str = end_str + end.getFullYear()+"/";
	end_str = end_str + (end.getMonth()+1)+"/";
	end_str = end_str + end.getDate()+" ";
	end_str = end_str + end.getHours()+":";
	end_str = end_str + end.getMinutes()+":";
	end_str = end_str + end.getSeconds()+".";
	end_str = end_str + end.getMilliseconds()+".";
	var period = "Full page load time: "+(end_time - start_time)+"ms";
	document.getElementById("start_time").innerHTML = start_str;
	document.getElementById("end_time").innerHTML = end_str;
	document.getElementById("period").innerHTML = period;
 }
</script>
<body>
<div id="start_time"></div>
<div id="end_time"></div>
<div id="period"></div>
<iframe width="100%" height="100%" frameborder="no" border="0" onload=getResult() src='http://3g.qq.com'></iframe>
</body>
</html>